
#include "render.h"
#include "graphics.h"

using namespace WtfEngine;


/*
Renderable::Renderable()
{
	// Add to render list
	
	// Zero the sprite table
	memset(this->SpriteTable, 0, sizeof(*(this->SpriteTable)) * SPRITES_PER_OBJECT);
};

Renderable::~Renderable()
{
	// Delete all sprites
	unsigned i;
	for (i=0; i < SPRITES_PER_OBJECT; i++)
	{
		if(this->SpriteTable[i])
			delete this->SpriteTable[i];
	};
};

void Renderable::Render()
{
	// Render all sprites
	unsigned i;
	for (i=0; i < SPRITES_PER_OBJECT; i++)
	{
		if(this->SpriteTable[i])
			this->SpriteTable[i]->Render(this->Position);
	};
};

void ImageSprite::Render(tBaseVector pos)
{
	//this->Image->DrawOnAt(WtfGraphics::SdlScreen::GetScreen(),
		//this->Position.x + pos.x, this->Position.y + pos.y);
};

*/

